package com.foreknow.hospital.dao;

import com.foreknow.hospital.po.Users;

import java.sql.SQLException;

public interface UsersDao {
    /**
     * 注册
     * 向用户表中添加一条记录
     * @param users
     * @return
     */
    public int saveUsers(Users users) throws SQLException;

    /**
     * 根据用户编号与密码查询用户信息
     * @param userId
     * @param password
     * @return
     */
    public Users getUsersByUserIdByPass(String userId,String password) throws SQLException;

    /**
     * 根据用户编号查询用户表返回的行数
     * @param userId
     * @return
     */
    public int getUsersById(String userId) throws SQLException;
}